import {useAdminInfoStore} from "@/store/adminInfo.js";

// role:add
export default function hasBtnPermission(permission) {
    const adminInfoStore = useAdminInfoStore();
    const btns = adminInfoStore.btns;
    return btns.indexOf(permission) !== -1
}
